﻿<UserControl x:Class="Mapping_Demo.DropPin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
	<UserControl.Resources>
		<Storyboard x:Name="DropPin1">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path">
				<DiscreteObjectKeyFrame KeyTime="0">
					<DiscreteObjectKeyFrame.Value>
						<Visibility>Visible</Visibility>
					</DiscreteObjectKeyFrame.Value>
				</DiscreteObjectKeyFrame>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="path">
				<EasingDoubleKeyFrame KeyTime="0" Value="-700"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<ExponentialEase EasingMode="EaseOut" Exponent="3"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Loaded="PinLoaded">
    	<Path x:Name="path" Data="M121.886,376.824l8.986-172.544c44.271-11.708,76.95-51.916,76.95-99.869C207.822,47.299,161.529,1,104.411,1
			S1,47.299,1,104.411c0,47.557,32.133,87.502,75.839,99.584l9.003,172.891c-33.307,1.983-58.013,9.176-58.013,17.776
			c0,10.126,34.257,18.335,76.521,18.335c42.253,0,76.516-8.209,76.516-18.335C180.865,385.978,155.673,378.724,121.886,376.824z
			 M90.189,81.628c-6.086,16.463-22.772,25.466-37.28,20.101C38.402,96.37,31.573,78.677,37.665,62.214
			c6.085-16.469,22.772-25.471,37.273-20.112C89.451,47.467,96.28,65.159,90.189,81.628z" HorizontalAlignment="Left" Height="60" Margin="-10.667,-37.836,0,0" Stretch="Fill" Stroke="White" UseLayoutRounding="False" VerticalAlignment="Top" Width="30" StrokeThickness="0.5" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
    		<Path.Fill>
    			<SolidColorBrush Color="#FF15287E"/>
    		</Path.Fill>
    		<Path.RenderTransform>
    			<CompositeTransform TranslateY="-700"/>
    		</Path.RenderTransform>
    	</Path>

    </Grid>
</UserControl>